<?php

namespace app\admin\controller;
use think\Session;
use think\Controller;

class Main extends Controller
{
    /**
     * 后台主页
     * @return \think\response\View
     */
    public function index()
    {
        $session = Session::get();

        $name = $session['user']['name'];
        return view('admin@main/index',[
            'name' => $name
        ]);
    }

}
